package model.container.vertices;

import model.Container;
import model.Edge;

/**
 * Abstract class to store the vertices of a graph
 */
public abstract class Vertices implements Container {
	/**
	 * Add an Item to the Container
	 * @see Vertices#addItem(int)
	 * @param from the starting Node
	 * @param to the ending Node
	 * @param co distance to the starting Node
	 */
	public abstract void addItem(int from, int to, int co);
	
	/**
	 * Add an Edge to the Container
	 * @param e The Item to add
	 * @see Edge#Edge()
	 * @see Vertices#addItem(int, int)
	 */
	public void addItem(Edge e) {
		addItem(e.getFrom(), e.getTo(), e.getCost());
	}
}
